import request from '@/utils/request'

/*
 * 食品安全
 */
export function schoolFoodWeek(params) {
  return request({
    url: 'food_check_week_option/index',
    method: 'GET',
    params
  })
}

// 每周安全检查food_check_week
export function foodCheckWeekNow(params) {
  return request({
    url: 'food_check_week/index',
    method: 'GET',
    params
  })
}

// 每周详情 food_check_week/edit
export function foodCheckWeekEdit(params) {
  return request({
    url: 'food_check_week/edit',
    method: 'GET',
    params
  })
}

// 上周检查记录
export function foodCheckWeekBefores(params) {
  return request({
    url: 'food_check_week/befores',
    method: 'GET',
    params
  })
}

// 每日检查
export function foodCheckDayNow(params) {
  return request({
    url: 'food_check_day/index',
    method: 'GET',
    params
  })
}

// 每日检查详情
export function foodCheckDayEdit(params) {
  return request({
    url: 'food_check_day/edit',
    method: 'GET',
    params
  })
}

// 获取食品供应商资质
export function qualification(params) {
  return request({
    url: 'food_check_day/qualification',
    method: 'GET',
    params
  })
}
// 保存食品供应商资质
export function save(params) {
  return request({
    url: 'food_check_day/qualification_save',
    method: 'POST',
    params
  })
}
